const groupState = {
    groupName: '',
    groupMajor: ''
}

function groupReducer(state, action) {
    switch (action.type) {
        case 'updateGroup':
            return { ...state, ...action.payload }
            break;
        default:
            return state
            break;
    }
}

export {
    groupReducer,
    groupState
}